﻿namespace Stopwatch
{
    using System.Runtime.Serialization;

    [DataContract]
    public class AppState : JsonSerializable
    {
        [DataMember]
        public WatchState WatchState { get; set; }

        [DataMember]
        public TimerState TimerState { get; set; }

        [DataMember]
        public Time[] WatchAddedList { get; set; }

        [DataMember]
        public Time[] WatchAddedList2 { get; set; }

        public override string ToString()
        {
            return ToJson();
        }
    }
}
